<?php

namespace app\request;

use think\Validate;

class Enroll extends Validate
{

    protected $scene = [
        'enroll' => ['release_type', 'code'],
    ];


    protected $rule = [
        'release_type' => 'require|in:0,1',
        'code' => 'require|length:32',
    ];


    protected $message = [
        'release_type.require' => '请选择登陆器类型',
        'release_type.in' => '登陆器类型值不正确',
        'code.require' => '非法认证',
        'code.length' => '非法认证',
    ];

}